package com.jc.springboot.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.jc.springboot.pojo.User;
import com.jc.springboot.service.UserService;

@Controller
@RequestMapping("/user")
public class UserController {
	@Autowired
	UserService userService;
	
	@RequestMapping("/test")
	public String test(){
		User user = userService.findUserById(1);
		System.out.println(user.getName());
		return "test";
	}
}
